package org.pzy.study.one;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * SpringInitApp01
 *
 * @author pan
 * @date 8/22/20
 */
public class SpringInitApp01 {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext();
		annotationConfigApplicationContext.register(BeanA.class,BeanB.class);
		annotationConfigApplicationContext.refresh();
		BeanA beanA = annotationConfigApplicationContext.getBean(BeanA.class);
		System.out.println(beanA);
	}
}
